package cn.aixuegao.model.admin;

import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.annotations.TableName;

import java.io.Serializable;
import java.sql.*;

/**
* 描述： 市场价格表 实体类
* @author hxy
* @date 2018/04/28
*/

@TableName("tbl_article")
public class Article  implements Serializable{
	
	/**
	 * 
	 */
	private static final long serialVersionUID = -7437023267975775976L;
	/**
	 * id
	 */
	private Integer id;
    /**
    *文章标题
    */
    @TableField(value = "title")
    private String title;
    /**
    *文章发布时间
    */
    @TableField(value = "publish_time")
    private Timestamp publishTime;
    /**
    *文章内容
    */
    @TableField(value = "content")
    private String content;
    /**
    *文章类型id
    */
    @TableField(value = "column_id")
    private Integer columnId;
    /**
    *文章修改时间
    */
    @TableField(value = "modification_time")
    private Timestamp modificationTime;
    /**
    *文章关键字
    */
    @TableField(value = "key_word")
    private String keyWord;
    /**
    *作者
    */
    @TableField(value = "author")
    private String author;
    /**
    *封面的url
    */
    @TableField(value = "cover_image")
    private String coverImage;
    /**
     * 文章的类型是发布（0）还是未发布（1）
     */
    @TableField(value = "type")
    private String type;
    /**
     * 文章摘要
     */
    @TableField(value = "digest")
    private String digest;
    /**
     * 资源id，用于畅言
     */
    @TableField(value = "source_id")
    private String sourceId;
    
    
    public String getSourceId() {
		return sourceId;
	}
	public void setSourceId(String sourceId) {
		this.sourceId = sourceId;
	}
	public String getDigest() {
		return digest;
	}
	public void setDigest(String digest) {
		this.digest = digest;
	}
	public String getType() {
		return type;
	}
	public void setType(String type) {
		this.type = type;
	}
	public Integer getId() {
		return id;
	}
	public void setId(Integer id) {
		this.id = id;
	}
	public String getTitle() {
        return this.title;
    }
    public void setTitle(String title) {
        this.title = title==null?null:title.trim();
    }
    public Timestamp getPublishTime() {
        return this.publishTime;
    }
     public void setPublishTime(Timestamp publishTime) {
        this.publishTime = publishTime;
    }
    public String getContent() {
        return this.content;
    }
    public void setContent(String content) {
        this.content = content==null?null:content.trim();
    }
    public Integer getColumnId() {
        return this.columnId;
    }
     public void setColumnId(Integer columnId) {
        this.columnId = columnId;
    }
    public Timestamp getModificationTime() {
        return this.modificationTime;
    }
     public void setModificationTime(Timestamp modificationTime) {
        this.modificationTime = modificationTime;
    }
    public String getKeyWord() {
        return this.keyWord;
    }
    public void setKeyWord(String keyWord) {
        this.keyWord = keyWord==null?null:keyWord.trim();
    }
    public String getAuthor() {
        return this.author;
    }
    public void setAuthor(String author) {
        this.author = author==null?null:author.trim();
    }
    public String getCoverImage() {
        return this.coverImage;
    }
    public void setCoverImage(String coverImage) {
        this.coverImage = coverImage==null?null:coverImage.trim();
    }
	@Override
	public String toString() {
		return "Article [id=" + id + ", title=" + title + ", publishTime=" + publishTime + ", content=" + content
				+ ", columnId=" + columnId + ", modificationTime=" + modificationTime + ", keyWord=" + keyWord
				+ ", author=" + author + ", coverImage=" + coverImage + ", type=" + type + ", digest=" + digest
				+ ", sourceId=" + sourceId + "]";
	}
}